group :runtime do
  java(:ftpserver, "ftpserver",
       :order => 11,
       :mandatory => true,
       :classpath => %W[common/classes common/lib/*.jar],
       :start => {
         :main => "org.apache.ftpserver.main.CommandLine",
         :arguments => "res/conf/ftpd.xml"
       },
       :started => {:port => Platform.config.ftpserver.port, 
                    :max => 1.minutes },
       :stop => :kill)
end